//
//  NSString+ChangeFormat.h
//  Lfq
//
//  Created by 贺世昌 on 16/1/7.
//  Copyright © 2016年 文君. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (ChangeFormat)

//把yy-MM-dd HH:mm:ss 转化为yy.MM.dd HH:mm:ss
+ (NSString *)changeDateFormat:(NSString *)str;
//把yy-MM-dd HH:mm:ss 转化为yy年  MM月 dd日  HH:mm:ss
+ (NSString *)changeLiveDate:(NSString *)string;
//把yy-MM-dd HH:mm:ss 转化为yy年 MM月 dd日
+ (NSString *)changeLiveDateyymmdd:(NSString *)string;
//把yy-MM-dd 转化为 yy.MM.dd
+ (NSString *)changDateString:(NSString *)string;
//把秒变成天、时、分、秒
+ (NSString *)changeShowDate:(NSString *)str;


//
+ (NSString *)SecondChangMinuteTime:(NSString *)string;
//把米转换为公里
+ (NSString *)getDistanceShow:(NSString *)str;
//判断预约直播结束是否到达结束时间
+ (NSComparisonResult )compareNowDateAndStartDate:(NSString *)stareDateStr AndDuration:(NSString *)duration;
+ (NSString *)changeSendDateFormat:(NSString *)sendData;
//转换时间为本地时间
+ (NSString *)getNowDataStringForString:(NSString *)time;
//是否含有表情
+ (BOOL)stringContainsEmoji:(NSString *)string;
//把秒转换为 分’秒“
+ (NSString *)changTime:(NSString *)string;
//判断手机号码是否是正确的
+ (BOOL)isValidateMobile:(NSString *)mobile;
//
+ (BOOL)validateMobile:(NSString *)mobileNum;
//判断邮箱是否正确
+ (BOOL)isValidateEmail:(NSString *)email;
//隐藏身份证
+ (NSString *)changeIdCardNumber:(NSString *)str;
//转换直播标签
+ (NSString *)getNewLiveTagFor:(NSString *)str;
//转换授课标签
+ (NSString *)GetClassTagForNSString:(NSString *)str;
//转换直播标签
+ (NSString *)GetTagForNSString:(NSString *)str;
//获取kookie
+ (NSString *)getcookieInfo:(NSString *)url;
//密码加密
+(NSString *)MD5Sring:(NSString *)str;
//设置字间距
+ (NSMutableAttributedString *)getArributedStringForString:(NSString *)str andCharacterSpacing:(short)number;
//通给文字的个数给出需要的高度
+ (CGFloat)getHeightWithContent:(NSString *)content width:(CGFloat)width font:(CGFloat)font;
//改变播放次数显示
+ (NSString *)changeShowNumber:(NSString *)numberStr;

+ (NSString *)getNearByShow:(NSString *)str;
//
+ (NSString *)changePhoneStr:(NSString *)str;

//通过经纬度算距离
+ (NSString *)getDistanceForOneLocationLatitude:(double)latitudeOne andOneLongitude:(double)longitudeOne;

//改变头像图片大小地址
+ (NSString *)getIconImageSize:(NSString *)path;

+ (NSString*)GetPathByFileName:(NSString *)_fileName ofType:(NSString *)_type;
+ (NSString*)GetCurrentTimeString;



//判断字符串为空
+ (BOOL) isBlankString:(NSString *)string;
//获取当地时间 xxxx年xx月
+ (NSString *)getCurrentTime_HN;
//获取当地时间 xxxx年xx月xx日
+ (NSString *)yearMonthDay;

//获取年月日格式2017-11-01
+ (NSString *)currentDateTow;

/*
 获取每个月份的第一天  格式2017-10-01
 **/
+(NSString *)getCurrentDateYearMD;
+ (NSString *)hour;
@end
